package edu.xhu.biliuser.feign;

import edu.xhu.biliuser.service.BiliUserCrudService;
import edu.xhu.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "BiliUserCrudFeignApi", tags = "BiliUserCrudFeignApi")
@CrossOrigin
@RestController
@RequiredArgsConstructor
@RequestMapping("/biliuser")
public class BiliUserCrudApi {
    private final BiliUserCrudService biliUserCrudService;

    @ApiOperation("获取全部用户id")
    @GetMapping("/getAllUserIds")
    ResponseResult<?> getAllUserIds() {
        return biliUserCrudService.getAllUserIds();
    }
}
